<?php

namespace LowCode\Traits\Props;

use LowCode\Support\JsExp;

trait HasAutofocus
{
    /**
     * 是否自动获取焦点
     * @param bool|string|JsExp $autofocus
     * @return $this
     */
    public function autofocus(bool|string|JsExp $autofocus = true): static
    {
        return $this->setBoolProp("autofocus",$autofocus);
    }
}
